﻿using System;
using System.ComponentModel.DataAnnotations;

namespace Entity
{
    /// <summary>
    /// 注册
    /// </summary>
    public class UserInfo
    {
        [Key]
        public int Id { get; set; }

        /// <summary>
        /// 用户名
        /// </summary>
        [StringLength(50)]
        public string UserName { get; set; }

        /// <summary>
        /// 用户头像
        /// </summary>
        public string UserPIc { get; set; }

        /// <summary>
        /// 手机号
        /// </summary>
        [StringLength(50)]
        public string Phone { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        [StringLength(50)]
        public string Password { get; set; }

        /// <summary>
        /// 注册时间
        /// </summary>
        public DateTime register { get; set; } = DateTime.Now;
    }
}
